export default {
  data() {
    return {
      tip_show: false,
      list_institution: [{
        value: "",
        name: ""
      }, {
        value: "学校",
        name: "学校"
      }, {
        value: "企业",
        name: "企业"
      }, {
        value: "其他",
        name: "其他"
      }],

      // 模式列表
      list_mode: [{
        value: "",
        name: ""
      }, {
        value: "MVC",
        name: "MVC"
      }, {
        value: "MVVM",
        name: "MVVM"
      }],


      // 语言列表
      list_lang: [{
          value: '',
          name: ''
        }, {
          value: 'java',
          name: 'Java'
        },
        {
          value: 'php',
          name: 'PHP'
        }, {
          value: 'python',
          name: 'Python'
        },
        {
          value: 'nodejs',
          name: 'NodeJS'
        },
        {
          value: 'csharp',
          name: 'C#（asp.net）'
        }
      ],

      // 程序架构列表
      list_framework: [{
          mode: "",
          lang: "",
          value: "",
          name: ""
        },
        {
          mode: "MVVM",
          lang: "",
          name: "vue-cli",
          value: "vue_cli"
        },
        {
          mode: "MVVM",
          lang: "",
          name: "uni-app",
          value: "uni_app"
        },
        {
          mode: "MVVM",
          lang: "",
          name: "小程序",
          value: "mini_app"
        },
        {
          mode: "MVC",
          lang: "java",
          name: "jspmvc",
          value: "jspmvc"
        },
        {
          mode: "MVC",
          lang: "php",
          name: "thinkphp",
          value: "thinkphp"
        },
        {
          mode: "MVC",
          lang: "csharp",
          name: "asp_net",
          value: "asp_net"
        },
        {
          mode: "MVC",
          lang: "python",
          name: "django",
          value: "django"
        },
        {
          mode: "MVC",
          lang: "nodejs",
          name: "koa-art",
          value: "koa_art"
        }
      ],

      // ui框架
      list_ui: [{
          mode: "",
          value: "",
          name: ""
        },
        {
          mode: "MVVM MVC",
          framework: "",
          name: "bootstarp",
          value: "bootstarp"
        },
        {
          mode: "MVVM",
          framework: "vue-cli",
          name: "element UI",
          value: "element"
        },
        {
          mode: "MVVM",
          framework: "uni-app 小程序",
          name: "weui",
          value: "weui"
        },
        {
          mode: "MVVM",
          framework: "uni-app 小程序",
          name: "mui",
          value: "mui"
        },
        {
          mode: "MVC",
          framework: "",
          name: "其他",
          value: "order"
        }
      ],

      // 数据库列表
      list_db: [{
          value: '',
          name: ''
        }, {
          value: 'mysql',
          name: 'mysql'
        },
        {
          value: 'sqlserver',
          name: 'sqlserver'
        },
        {
          value: 'mongodb',
          name: 'mongodb'
        }
      ],

      // 订单状态
      list_state: [{
          value: '',
          name: ''
        }, {
          value: 1,
          name: '待取单'
        }, {
          value: 2,
          name: '待开发'
        }, {
          value: 3,
          name: '进行中'
        },
        {
          value: 4,
          name: '修改中'
        },
        {
          value: 5,
          name: '已完成'
        },
        {
          value: 6,
          name: '已删除'
        }
      ],

      // 结算状态
      order_balance: [{
        value: '',
        name: ''
      }, {
        value: 0,
        name: '否'
      }, {
        value: 1,
        name: '是'
      }],
      list_type: ["轮播图", "背景图", "产品主图"],
      list_article_type: ["新闻资讯", "论坛帖子"],
      /**
       * 设备选项
       */
      list_device: [{
          name: "",
          value: ""
        },
        {
          name: "PC(台式)",
          value: "pc"
        }, {
          name: "Phone(手机)",
          value: "phone"
        }, {
          name: "Pad(平板)",
          value: "pad"
        }
      ],

      /**
       * 颜色选项
       */
      list_color: [{
          name: "",
          value: ""
        }, {
          name: "red",
          value: "红"
        },
        {
          name: "orange",
          value: "橙"
        },
        {
          name: "yellow",
          value: "黄"
        },
        {
          name: "green",
          value: "绿"
        },
        {
          name: "cyan",
          value: "青"
        },
        {
          name: "blue",
          value: "蓝"
        },
        {
          name: "purple",
          value: "紫"
        }
      ],

      /**
       * 客户端
       */
      list_client: [{
          name: "",
          value: ""
        },
        {
          name: "后台",
          value: "后台"
        },
        {
          name: "前台",
          value: "前台"
        }
      ]
    }
  },
  methods: {
    change_mode(o) {
      o.framework = "";
      o.ui = "";
      o.tpl_admin = "";
      o.tpl_home = "";
      this.set(o, {
        order_id: o.order_id
      });
    },
    change_lang(o) {
      o.framework = "";
      o.ui = "";
      o.tpl_admin = "";
      o.tpl_home = "";
      this.set(o, {
        order_id: o.order_id
      });
    },
    change_framework(o) {
      o.ui = "";
      o.tpl_admin = "";
      o.tpl_home = "";
      this.set(o, {
        order_id: o.order_id
      });
    },
    change_ui(o) {
      o.tpl_admin = "";
      o.tpl_home = "";
      this.set(o, {
        order_id: o.order_id
      });
    }
  }
}
